package com.gimi.cloud.bbp.app.consumer.service;


import com.gimi.cloud.bbp.common.exception.MsgException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by shazhiwei on 2017/10/17.
 */
public interface RegisterService {

    void checkPhoneAvailable(String body, HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest);

    void doRegister(String body, HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest);

    void doLoginByPassword(String body, HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest);

    void refreshToken(String body, HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest);

    void getInitPwdCode(String body, HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest);

    void doLoginByPwdCode(String body, HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest);

    void resetPwd(String body, HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest);

    void modifyPwd(String body, HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest) throws MsgException;

    void unreadMsg(String body, HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest);

    void weChatRegister(String body, HttpServletResponse httpServletResponse, HttpServletRequest httpServletRequest);

    /**
     * 初始化密码
     * @param requestData 请求参数
     * @param response
     * @param request
     */
    void initPwd(String requestData, HttpServletResponse response, HttpServletRequest request);
    
    /**
     * 验证忘记密码验证码
     * @param requestData
     * @param response
     * @param request
     */
    void checkModifypassword(String requestData, HttpServletResponse response, HttpServletRequest request);
}
